package com.vueperson.vueperson.controller;

import com.vueperson.vueperson.entity.TestsEntity;
import org.springframework.web.bind.annotation.*;

@RestController

public class TestController {
    @RequestMapping("/test02")
    public TestsEntity test02(){
        TestsEntity testsEntity=new TestsEntity();
        testsEntity.setTitle("test02!!");
        return testsEntity;
    }


    @RequestMapping("/test01")
    public TestsEntity test01(@RequestParam (name = "title") String title){
        TestsEntity testsEntity=new TestsEntity();
        testsEntity.setTitle(title+"后台加工过的");
        return testsEntity;
    }

}
